<?php

?>
<? echo $this->render('header_search.phtml'); ?>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td width="67%" valign="top">
			<p style="padding: 0 0 8px 0;"><label class="yellow_text" style="font-weight: bold; font-size: 10pt;">Tin nóng</label>&nbsp;<img src="<?= $this->baseUrl ?>/public/images/frontend/yellow_bullet.jpg" border="0" />&nbsp;<span id="hot_news" style="font-weight: bold; font-size: 8pt"></span></p>
			<p style="padding: 0 0 8px 0;"><a class="normal2" href="<?= $this->baseUrl ?>/account/register" title="Join now!"><img alt="Join now!" src="<?= $this->baseUrl ?>/public/images/frontend/font-page-image.jpg" border="0" /></a></p>
			<?php echo $this->render('box_search_home.phtml', null, true); ?>
			<table cellpadding="0" cellspacing="0" width="100%" border="0" style="background: url('<?= $this->baseUrl ?>/public/images/frontend/search_result_bg.jpg') left top no-repeat;">
				<tr>
					<td width="100%" align="left" style="padding: 0 0 0 10px;">
						<table cellpadding="5" cellspacing="0" width="100%" border="0">
							<tr>
								<td width="60%" align="left" class="horiz_sep" style="background-position: bottom;">
									<label class="yellow_text" style="font-weight: bold; font-size: 12pt;">Tiêu đề</label>
								</td>
								<td width="20%" align="center" class="horiz_sep" style="background-position: bottom;">
									<label class="yellow_text" style="font-weight: bold; font-size: 12pt;">Ngày đăng</label>
								</td>
								<td width="20%" align="center" class="horiz_sep" style="background-position: bottom;">
									<label class="yellow_text" style="font-weight: bold; font-size: 12pt;">Lần xem</label>
								</td>
							</tr>
							<? for ($i = 0; $i < 30; $i ++): ?>
							<tr style="<?= (($i % 2 == 0) ? 'background-color:#f9f1e6;' : '') ?>">
								<td align="left" style="padding: 0 0 0 10px;"><img src="<?= $this->baseUrl ?>/public/images/frontend/yellow_bullet.jpg" border="0" />&nbsp;<a class="normal2" href="#">Quần áo hàng hiệu nhập khẩu trực tiếp từ Thái Lan.</a></td>
								<td align="center">11-10-2008</td>
								<td align="center">200</td>
							</tr>
							<? endfor; ?>
							<tr>
								<td colspan="3" align="center" style="padding: 10px 0 10px 0;">
									<?php
										$paging = new Paging ( );
										$page = $paging->doPaging ( 100, '#sample', 1, 30, 0, null, 'page', 'selected_page' );
										echo $page;
									?>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<p style="padding: 0 0 8px 0;"><a class="normal2" href="<?= $this->baseUrl ?>/account/register" title="Join now!"><img alt="Join now!" src="<?= $this->baseUrl ?>/public/images/frontend/font-page-image.jpg" border="0" /></a></p>
		</td>
		<td width="1%">&nbsp;</td>
		<td width="32%" valign="top">
			<? echo $this->render('box_reg_now.phtml', null, true); ?>
	    	<p style="width: 100%; height: 5px;">&nbsp;</p>
			<?php echo $this->render('box_news_ads.phtml', null, true); ?>
		</td>
	</tr>
</table>
<? echo $this->render('footer.phtml'); ?>
<script type="text/javascript">
	jQuery(document).ready(function() {
		eway.newsTicker({url: '<?= $this->baseUrl ?>/index/news', div: '#hot_news', cssClass: 'normal2'});
		eway.ajaxsearch({url: '<?= $this->baseUrl ?>/index/ajaxsearch/pane/advanced', handle: '#adv_search_handle', div: '#box_search_advanced_pane', imageHandle: '#adv_search_image_handle'});
		eway.ajaxsearch({url: '<?= $this->baseUrl ?>/index/ajaxsearch/pane/help', handle: '#help_search_handle', div: '#box_search_help_pane', imageHandle: '#help_search_image_handle'});
		eway.flyBox({handle: '#fly_box_0', sep: '#fly_box_sep_0', url: '<?= $this->baseUrl ?>/index/ajaxsearch/pane/help', content: '#fly_box_content'});
		eway.flyBox({handle: '#fly_box_1', sep: '#fly_box_sep_0', url: '<?= $this->baseUrl ?>/index/ajaxsearch/pane/help', content: '#fly_box_content'});
	});
</script>